package Polymorphic.PolymorphDemo005;

/**
 * ClassName:Text
 * Package:Polymorphic.PolymorphDemo005
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/24-13:45
 * @Version:v1.0
 */
public class Text001 {
    public static void main(String[] args) {

        final int a = 10;
        System.out.println(a);
        //a=20;
    }
}

class Fu {
    public void show() {
        System.out.println("父类的show方法");
    }
}

class Zi extends Fu {
    @Override
    public void show() {
        System.out.println("子类的show方法");
    }
}